<%--
    @Description： 晶棒数据查询表全部
    @Author： 樊双峰
    @Date： 2018-08-09 0:00
--%>
<style type="text/css">
tr, th, td {
    text-align: center;
}
</style>

<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/CrystalDataQuery/crystalDataQuery"
          method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="${SYS_QUERY_NAME}"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            %{--<label>起始时间<strong><span class="text-danger">*</span></strong>：</label>--}%
            %{--<input type="text" name="startTime" class="form-control" data-rule="required"--}%
            %{--data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"--}%
            %{--size="18" id="start-date-input" readonly value="${startTime}">&nbsp;--}%
            %{--<label>结束时间<strong><span class="text-danger">*</span></strong>：</label>--}%
            %{--<input type="text" name="endTime" class="form-control" data-rule="required"--}%
            %{--data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"--}%
            %{--size="18" id="end-date-input" readonly value="${endTime}" >&nbsp;--}%
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/Base/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <g:if test="${report_011.size() > 0}">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th width="50">NO.</th>
                <g:each in="${tableHeadList}" status="i" var="headInstance">
                    <g:if test="${headInstance != 'RN'}">
                        <th><g:message code="${headInstance}" default="${headInstance}"/></th>
                    </g:if>
                </g:each>
            </tr>
            </thead>
            <tbody>
            <g:each in="${report_011}" status="i" var="dataInstance">
                <tr>
                    <td>${i + 1}</td>
                    <g:each in="${tableHeadList}" status="j" var="headInstance">
                        <g:if test="${headInstance != 'RN'}">
                            <td>${dataInstance["${headInstance}"]}</td>
                        </g:if>
                    </g:each>
                </tr>
            </g:each>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel"/>
    </g:else>
</div>
<g:render template="../template/pagination"/>